package hcn.protocol.ods.casehistory;

import hcn.util.validation.InvokeType;
import hcn.util.validation.ValidationAnnotaion;
import lombok.Data;

/**
 * @Author: zhusm@bsoft.com.cn
 *
 * @Description: 病历计费规则模板入参
 *
 * @Create: 2019-06-25 15:42
 **/
@Data
public class BLCalculateCostModelRequest {

    @ValidationAnnotaion.NotNull(errorDescription = "规则名称不能为空")
    private String ruleName;//规则名称
    private Integer ruleType;//规则类型 0：计重，1：计件
    @ValidationAnnotaion.NotNull(errorDescription = "规则编码不能为空")
    private String ruleCode;//规则编码
    @ValidationAnnotaion(type = InvokeType.NUMBER, minValue = 0.01,errorDescription = "首重至少为0.01g")
    private Double firstWeight;//首重 单位：g
    private Double continueWeight;//续重 单位：g
    @ValidationAnnotaion(type = InvokeType.NUMBER, minValue = 0.01,errorDescription = "每箱重量至少为0.01g")
    private Double oneboxWeight;//每箱重量 单位：g
    @ValidationAnnotaion(type = InvokeType.NUMBER, minValue = 0.01,errorDescription = "每箱包装费用至少为0.01元")
    private Double oneboxPackageFee;//每箱包装费用 单位：元
    @ValidationAnnotaion.NotNull(errorDescription = "按件数计费区域不能为空")
    private String regionId;//计费区域id 多个用逗号隔开
    @ValidationAnnotaion.NotNull(errorDescription = "按区域首续重费用不能为空")
    private String regionFeeId;//区域首续重费用id 多个用逗号隔开
    private Integer enable;//是否启用
}
